/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package judf.chart;

import java.util.List;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;

/**
 *
 * @author Frank Gabriel Rodríguez Lee
 */
public class ChartDataSet {
    public static CategoryDataset getCategoryDataSet( List datos ){
        DefaultCategoryDataset dataset = new DefaultCategoryDataset();
        for (Object object : datos) {
            List lobj = (List) object;
            dataset.addValue(Double.parseDouble(lobj.get(0).toString()), lobj.get(1).toString(), lobj.get(2).toString());
        }
        return dataset;
    }
}
